C Program to Store 5 Person Age in an Array & Display | Programming Time 4.1 | 10th Computer Science

preview_player
Показать описание
C Program to Store 5 Person Age in an Array & Display | Programming Time 4.1 | 10th Computer Science
Problem Definition:
//PROGRAMMING TIME 4.1
/*
Problem:
Write a program that stores the ages of five persons in an array,and then display on screen.
Program:
*/

#include stdio.h
void main()
{
int age[5];

age[0]=25;
age[1]=34;
age[2]=29;
age[3]=43;
age[4]=19;
/*Above statements assign values at different indexes of array age. We can see that the first
value is stored at index 0 and the last value is stored at index 4*/
printf("The ages of five persons are: %d, %d, %d, %d, %d", age[0], age[1], age[2], age[3], age[4]);
/*Above statement displays the ages of five persons stored in the array*/

}

Social Media Links:
_______/❤ All Students are requested to Follow Me on Social Media!! ❤\_________

How to install and Download Code::Blocks:
10th Computer Science All Lectures Playlist:
10th Computer Science All Exercise Playlist:
10th Computer Science All Example Code Playlist:
10th Computer Science All Programming Time:
10th Computer Science All Activities Playlist:
10th Computer Science All Programming Exercise Playlist:

#Digitaleducation,
#Digitaleducationlatestnews,
#Digitaleducationshahbazali,
#ProgrammingTime4.1,
#Programmingtime4.1Class10,
#Programmingtime4.1,
#4.1ProgrammingTime,
#Program4.1,
#Activity4.1,
#AccessingArrayElements,
#ArrayElements,
#CProgram,
#CProgramtoStoreAgeof5PersoninanArray,
#DisplayonScreen,
#ArrayElements,
#ArrayinC,
#WhatisanArray,
#Arrayc,
#Arraycexamplearray,
#IndexesofArray,
#ArrayinCwithExample,
#UsingIndexes,
#ArrayData,
#Program
#CProgram,
#NestedIfElse,
#ElseIf,
#Subject,
#Marks,
#Percentage,
#GradeActivity4.1,
#Activity4.1Class10Science,
#Program4.1,
#UseOfIfStatementInCClass10ComputerScience,
#IfStatementInC,
#UseOfIfStatementInC,
#CLanguageTutorialInHindi,
#ComputerScienceClass10NewBook,
#10thClassOnlineComputerLecture,
#Class10thComputer,
#Class10thComputerChapter3,
#Useofifstatementincclass10computerscience,
#ifstatementinc,
#useofifstatementinc,
#clanguagetutorialinhindi,
#computerscienceclass10newbook,
#10thclassonlinecomputerlecture,
#class10thcomputer,
#class10thcomputerchapter3,
#IntroductionToWebDevelopment,
#C++ProgrammingCourse,
#ChapterNo1CompleteActivites,
#IntroductionToCProgramming,
#ProgrammingEnvironment
#IntegratedDevelopmentEnvironment(IDE)
#TextEditor
#computerscience10thclassbook2020,
#computersciencebookforclass10,
#10thcomputersciencebook,
#computersciencenewbook10thclass2020,
#computerscience10thclass,
#Class10computersciencebook,
#computerscience10thclassbook,
#class10computerscience,
#10classcomputersciencebook,
#computersciencenewbook10thclass,
#10thcomputerscience,
#computerscienceclass10book,
#computerscience10classbook,
#computerscienceclass10newbook,
#keybookofcomputersciencefor10thclassfederalboard,
#computerscience10thclassbookfederalboard,
#10thclasscomputersciencenewbook2020,
#computersciencebook10thclass,
#10thclassbookcomputerscience,
#computerscienceofclass10,
#10thclasscomputersciencekeybook,

Computer Science 10th class
Lecturer of Computer Science
By Sir Shahbaz Ali
For any query or private tutoring contact (0309-0334424)
Рекомендации по теме