🔒 Closed Patulong po sa mga i.t pasagot :)

Status
Not open for further replies.

AlexanderFV

Forum Guru
1.Write a program that will output :

15
3.75

W=5 //variables
x=10
y=a+b
a=15.0/4.0


2.Using (for) write a program that will input integers you want to add enter integer : 2


3. Using (if else)
a=10
Output:
If condition is satisfied a is greater than 20 value of a is : 10


4. Using (if condition)
a=10
Output:
If condition is satisfied a is greater than 20 value of a is : 10
 
Mas mainam po if ilagay mo po yung complete details. Right now, puro random variables yung provided which is very hard para iinterpret if ano yung mismong problem hahaha
 
#3 and #4 Similar lang naman haha

#include <iostream>
using namespace std;
int a=10;

int main()
{
cin>>a;
if(a>20)
{
cout<<"a is equal to 10";
}
}

Pero a is greater than 20 then a is 10?? Ano yon?? Hahaha
Then unclear ang 1 at 2, sino ba nagbigay ng problem na yan?
 
Mas ok sana kung ikaw ang gumagawa nito para matoto ka. Wag mo sanang masamain kasi para din yan sayo balang araw. Hehehe. Mas ok kung nag post ka ng codes mo dito at kami na mag fix.
 
Status
Not open for further replies.

About this Thread

  • 7
    Replies
  • 728
    Views
  • 5
    Participants
Last reply from:
noname18

Trending Topics

Online now

Members online
1,121
Guests online
1,101
Total visitors
2,222

Forum statistics

Threads
2,287,147
Posts
29,042,632
Members
1,216,389
Latest member
wadawd
Back
Top