Friday, 22 January 2016

// // Leave a Comment

C++ TABLE

C++ program To Generate Multiplication Table





#include<iostream>
using namespace std;
int main()
{
int table;
cout << "Plaese Enter the Number : \n";
cin >> table;
for (int x = 1; x <= 20; x++)
{

cout << table << "x" << x << "=" << table*x << endl;
}
system("pause");
}


*------------------------------------------------------------------------------------------------------*

#include hum is liya likhta hain taka hum ak header file ko samil kar saka. jasa ke "iostream" is program ma samil kia. header files ko is liya hum istimal karta hai q ka us ma pahla sa he kuch functions ko store karwa lia jata hai. Taka baad ma humay bar bar usay likhna na paray bs us ke header file ko shamil kar ka us function ko call kar lia jae .
iostream ma b kuch function ko store karwaya gaya hai FOR EXAMPLE

cout :Standard output stream=>cout hum kuch be screen pa print karwana ka lia istemal karta hai

cin:Standard input stream=>cin hum user sa kuch b value enter karwana ka lia istimal karta hai

cerr:Standard output stream for errors =>c error screen pa error massege show karwana ka lia

clog:Standard output stream for logging=ya logging ka lia istimal hota hai.agar aur information lani ho tu is link ko click karayhttp://www.cplusplus.com/reference/iostream/clog/






0 comments:

Post a Comment